<%--
 *  File:    ApprovalZylReportPlanDetail.jsp
 *  @Author: jackwang 
 *  Date:    2012/11/15
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval. 
--%>
 

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<% //--------------------------------------  setting logger --%>
<%
  	Category cat = Category.getInstance("jsp.ApprovalZylReportPlanDetail"); 
%>

<% //--------------------------------------  variant and initialization --%>
<%
    String strModuleName = "PCM";
  	String strTableName = "";
  	String privilegeCode = "11601,A011007,A011008,A011009,A01402,A01403,A01404,A01405";
  	String contextPath = request.getContextPath();
%>



<%
  	HashMap CurUserInfo = (HashMap)session.getAttribute("userinfo");

    String strFromuserid = (CurUserInfo.get("userid")).toString();
%>

<% //--------------------------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/FrmDefault.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>
<%@ include file="/rpt/ReportURL.inc"%>


<html>
<head>
<title>ApprovalZylReportPlanDetail</title>
<PageFlow:CheckPageFlow pageName="zylapprovalfailtempdetail"/>
<% //--------------------------------------  output variant from pageflow --%>
<%

  	Vector userGroupSummary = (Vector)pageContext.getAttribute("ugsummary");
  	if(userGroupSummary == null)
  	{
    	userGroupSummary = new Vector();
  	}
  	
    HashMap UserInfo = (HashMap)session.getAttribute("userinfo");
    if(UserInfo == null) UserInfo = new HashMap();
    HashMap ParentUserinfo = (HashMap)pageContext.getAttribute("parentuserinfo");
    String parentuserid=null;
    if(ParentUserinfo == null) ParentUserinfo = new HashMap();
    
    if(ParentUserinfo.get("assistuserid")!=null){
       parentuserid = (ParentUserinfo.get("assistuserid")).toString();
       //out.print(parentuserid);
    }
  	String subjectcode = (String)pageContext.getAttribute("subjectcode");
  	
	
%>

<%@ include file="/inc/InitEdit.inc" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/boxover.js"></script>
<script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script type="text/javascript" src="<%=contextPath%>/js/opal2/mootools.js"></script>
<%@ include file="/inc/SummaryDivision.inc" %>
<script>

function page_summary(actionvalue,orderbyname)
{
  var editform = summaryPrepare(usergroupsummaryform,actionvalue,orderbyname);
  editform.action = "ApprovalZylReportPlanDetail.jsp?<%= OvalTools.randomURL() %>";
  editform.target = "_self";
  isRunning = true;
  editform.submit();  
}


function allcheckselect(){
	var allcheck = usergroupsummaryform.allcheck.checked;
	var alldatafile = document.getElementsByName('batchnoidstr');
	var length = alldatafile.length;
	if(allcheck){
		for(var i = 0 ; i < length;i++){
		  if(!alldatafile[i].disabled){
			alldatafile[i].checked = true;
		  }
		}
	}else{
		for(var i = 0 ; i < length;i++){
		   if(!alldatafile[i].disabled){
			alldatafile[i].checked = false;
		   }
		}	
	}
}


function editMode(obj,index,name,id) {
    if ($(name + index) == null) {
        var c = Trim(obj.innerText);
        var t = new Element('input', {
            'type':'text',
            'value':c,
            'styles':{
                    'width':'500px'
                     },
            'id':name + index,
            'name':name,
            'events':{
                'blur':function() {
                    saveData(this,id,c);
                },
                'keydown':function() {
                    if (event.keyCode == 13) {
                        saveData(this,id,c);
                    }
                }
            }
        });
       
        obj.innerHTML = '&nbsp;';
        t.inject(obj);
        selectText(t);
    }
}

function saveData(obj,id,c) {
    var p = obj.parentNode;
    var fromusrid= document.usergroupsummaryform.fromuserid.value ;
    var subjectcode = document.usergroupsummaryform.subjectcode.value ;
    var begindate = document.usergroupsummaryform.begindate.value ;
    p.innerHTML = obj.value;
    var req = new Request({
        'url':'<%=contextPath%>/Dispatcher',
        'method':'get',
        'data':'pagename=approvalfailtempdetail&actionname=save&columnname=' + obj.name + '&columnvalue='+ encodeURI(obj.value) + '&transactionid=' + id+'&transactioncode=' + id +'&fromuserid='+fromusrid+ '&subjectcode='+subjectcode+'&begindate='+begindate
    });
    req.send(); 
    window.location.reload();
}

//选中文本框中的字符




function selectText(obj) {
    var range = obj.createTextRange();
    range.moveStart("character", 0);
    range.select();
}
    
function setValue()
{
   var frm = document.usergroupsummaryform;
   frm.nt1.value = frm.nt0.value;
   frm.nc1.value = frm.nc0.value;
}
function page_back(){

	var subjectcode =document.usergroupsummaryform.subjectcode.value;
	<% if (subjectcode.equals("820") || subjectcode.equals("920") || subjectcode.equals("821") || subjectcode.equals("921")){  %>
	self.location.href ="ZylAllGoalsPlanSummary.jsp?<%= OvalTools.randomURL() %>"+"&subjectcode="+subjectcode;
	<%}%>
	<% if (subjectcode.equals("824") || subjectcode.equals("924")){  %>
	self.location.href ="ZylDocGoalsPlanSummary.jsp?<%= OvalTools.randomURL() %>"+"&subjectcode="+subjectcode;
	<%}%>
}
function page_approval()
{
  var frm = document.usergroupsummaryform;

  frm.pagename.value = "approvalfailsummary";
  frm.actionname.value = "approve";
  frm.target = "_parent";
  isRunning = true;
  frm.submit();

}


function page_upload(){
	this.location.href = "<%= contextPath%>/zylprocessgoals/UploadOrgstdprocessgoals.jsp?&<%= OvalTools.randomURL() %>&subjectcode="+document.usergroupsummaryform.subjectcode.value+"&batchno="+document.usergroupsummaryform.batchno.value;
}

function page_download() {
    var batchno=document.usergroupsummaryform.batchno.value;
    var employeeid=document.usergroupsummaryform.userid.value;
    <% if (subjectcode.equals("820")){  %>
	var url = "<%=reportURL%>/servlet/ExcecuteReport/modify_orgstdprocessgoals1.sox?__format=xlsx&__folder=/ovalreport";
	<%}%>
	<% if (subjectcode.equals("821")){  %>
	var url = "<%=reportURL%>/servlet/ExcecuteReport/modify_orgstdprocessgoals2.sox?__format=xlsx&__folder=/ovalreport";
	<%}%>
	url=url+"&employeeid="+employeeid+"&batchno="+batchno;
	var strstatus="height=768, width=1024,top=0,left=0,toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no";
	popwindow = window.open(url, "n1window", strstatus);
	                
}
function page_done(a_str){ 
    if(a_str!="allstop"){
      if(isNullChecked(document.usergroupsummaryform.batchnoidstr))
      {
        alert("<%= message.getMessageDesc("PLEASE_SELECT") %>");
        return;
      }
    }
    if(a_str=="agree")
    {
       document.usergroupsummaryform.actionname.value = "agree";
    }else if(a_str=="deny"){
       document.usergroupsummaryform.actionname.value = "deny";
    }
    else if(a_str=="stop"){
       document.usergroupsummaryform.actionname.value = "stop";
    }
    else if(a_str=="allstop"){
       document.usergroupsummaryform.actionname.value = "allstop";
    }else{
      return;
    }
    document.usergroupsummaryform.target = "_self";
    isRunning = true;
    document.usergroupsummaryform.submit();
}
</script>

<%
String strLanguageCode0;
  String strLanguageCode1;
  if(strLanguageCode.equalsIgnoreCase("cn"))
  {
	strLanguageCode0 = "cn";
	strLanguageCode1 = "en";
  }else{
	strLanguageCode0 = "en";
	strLanguageCode1 = "cn";    
  }%>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

	<% //--------------------------------------  hidden form variant --%>
	<form name="usergroupsummaryform" method="post" action="<%=contextPath %>/Dispatcher"  target="_parent">
    <input type="hidden" name="pagename" value="zylapprovalfailtempdetail">
    <input type="hidden" name="actionname">
    <input type="hidden" name="languagecode" value="<%= strLanguageCode %>">
    <custom:hidden property="batchno"/>
    <custom:hidden property="contactid"/>
    <custom:hidden property="businessareaid"/>
    <custom:hidden property="productgroupid"/>
    <custom:hidden property="year"/>
    <custom:hidden property="quarter"/>
    <custom:hidden property="level1"/>
    <custom:hidden property="contactid"/>
    <input type="hidden" name="subjectcode" value="<%=subjectcode %>"/>

    <input type="hidden" name="fromuserid" value="<%=JspHelper.filterNull( strFromuserid)%>">
    <input type="hidden" name="begindate" value="<%=JspHelper.filterNull( new java.sql.Date(new java.util.Date().getTime()) )%>">
    <input type="hidden" name="languagecode0" value="<%= strLanguageCode0 %>">
    <input type="hidden" name="languagecode1" value="<%= strLanguageCode1 %>">
    
    <input type="hidden" name="nt0">
    <input type="hidden" name="nt1">
    <input type="hidden" name="nc1">
    <input type="hidden" name="nc0">
    <input type="hidden" name="numrows" value="2">
    
    <custom:hidden scope="session" name="userinfo" property="userid"></custom:hidden> 
    
	<% //--------------------------------------  page location --%>
	<%@ include file="/inc/PageLocation.inc" %>
	
	<table width="100%" cellspacing="0" cellpadding="0" border="0">
  	<tr> 
    	<td valign="top"> 
    		<table width="100%" border="0" cellspacing="0">
          	<tr><td class="summary_top" ></td></tr>
        	</table>
        </td>
   	</tr>
   	</table>
<div style="overflow:auto;width:100%;height:300">   
 	   <% if (subjectcode.equals("820") || subjectcode.equals("920")){  %>
 	   <table width="3000"  border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
 	  <tr class="deepblue-left">
              <td class="title_center"   width="1%" rowspan="2">&nbsp;<input type="checkbox" name="allcheck" class="normalradio" onclick="allcheckselect();"></td>
              <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_SlipCode") %> </td>
              <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_ApprovalStatus") %> </td>	
              <!-- 
              <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_Approve") %> </td>
               -->		  
                <td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_Provicetdr") %></td>
				<td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_Department") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_RegionOffice") %></td>
				<td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_ManagerCode") %></td>
				<td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_ManagerName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Employeecode ") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_employeenameDelegate") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_HospitalCode")%></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_HospitalName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_SCMRole ") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_CityName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_YLCounty")%></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Country")+label.getLabelName("L_Grade") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Grade ") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Yl_Level") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Variety")%></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_YesOrNoOpen ") %></td>
				<td class="title_center" width="5%" colspan="2"><%= "开户时间" %></td>
	     </tr>
	     <tr class="deepblue-left">
				<td class="title_center"><%= label.getLabelName("L_YearN")  %></td>
				<td class="title_center"><%= label.getLabelName("L_Month1")  %></td>
		 </tr>
 	  <% } %>  

<% if (subjectcode.equalsIgnoreCase("821") || subjectcode.equals("921")){  %>
 	<table width="3200"  border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
 	  	  <tr class="deepblue-left">
              <td class="title_center"   width="1%" rowspan="2">&nbsp;<input type="checkbox" name="allcheck" class="normalradio" onclick="allcheckselect();"></td>
              <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_SlipCode") %> </td>
              <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_ApprovalStatus") %> </td>
              <!-- 
              <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_Approve") %> </td>
               -->			  
			    <td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_Provicetdr") %></td>
				<td class="title_center" width="4%" rowspan="2"><%= label.getLabelName("L_Department") %></td>
				<td class="title_center" width="4%" rowspan="2"><%= label.getLabelName("L_RegionOffice") %></td>
				<td class="title_center" width="4%" rowspan="2"><%= label.getLabelName("L_ManagerCode") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_ManagerName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Employeecode ") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_employeenameDelegate") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_PharmacyCode")%></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_PharmacyName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_SCMRole ") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_PharmacyType") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_ISCHAIN ")+label.getLabelName("L_Property ")  %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_DrugstoreLevel") %></td>
				<td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_YesOrNoTarget") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Variety")%></td>
				<td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_YesOrNoOpen ") %></td>
				<td class="title_center" width="5%" colspan="2"><%= "开户时间" %></td>
	     </tr>
	     	<tr class="deepblue-left">
				<td class="title_center"><%= label.getLabelName("L_YearN")  %></td>
				<td class="title_center"><%= label.getLabelName("L_Month1")  %></td>
		    </tr>
       <% }%>
       <% if (subjectcode.equals("824") || subjectcode.equals("924")){  %>
 	   <table width="4000"  border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
 	  <tr class="deepblue-left">
                    <td class="title_center"   width="1%" rowspan="2">&nbsp;<input type="checkbox" name="allcheck" class="normalradio" onclick="allcheckselect();"></td>
                    <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_SlipCode") %> </td>
                    <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_ApprovalStatus") %> </td>	
              <!-- 
              <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_Approve") %> </td>
               -->		  
                    <td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Provicetdr")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Dept")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_RegionOffice")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_ManagerCode")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_ManagerName")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Employeecode")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_employeenameDelegate")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Doctorcode")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_DoctorName")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Terminal")%><%=label.getLabelName("L_Code")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Terminal")%><%=label.getLabelName("L_Name")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_YesOrNoOpen")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_YesOrNoBale")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Country")%><%=label.getLabelName("L_Grade")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Grade")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Yl_Level")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_StandardDept")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_FactDept")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Variety")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_DoctorRecipel")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_Doctor")%><%=label.getLabelName("L_Grade")%></td>
					<td width="2%" class="title_center" rowspan="2"><%=label.getLabelName("L_CurrentlyStatus")%></td>

					<td class="title_center" width="8%" colspan="3">1<%=label.getLabelName("L_Quarter") %></td>
					<td class="title_center" width="8%" colspan="3">2<%=label.getLabelName("L_Quarter") %></td>
					<td class="title_center" width="8%" colspan="3">3<%=label.getLabelName("L_Quarter") %></td>
					<td class="title_center" width="8%" colspan="3">4<%=label.getLabelName("L_Quarter") %></td>
				</tr>

				<tr class="deepblue-left">
					<td class="title_center"><%= label.getLabelName("L_ThreeTarget") %></td>
					<td class="title_center"><%= label.getLabelName("L_Target") %><%=label.getLabelName("L_Grade")%></td>
					<td class="title_center"><%= label.getLabelName("L_Target") %><%=label.getLabelName("L_Prescription")%></td>
					<td class="title_center"><%= label.getLabelName("L_ThreeTarget") %></td>
					<td class="title_center"><%= label.getLabelName("L_Target") %><%=label.getLabelName("L_Grade")%></td>
					<td class="title_center"><%= label.getLabelName("L_Target") %><%=label.getLabelName("L_Prescription")%></td>
					<td class="title_center"><%= label.getLabelName("L_ThreeTarget") %></td>
					<td class="title_center"><%= label.getLabelName("L_Target") %><%=label.getLabelName("L_Grade")%></td>
					<td class="title_center"><%= label.getLabelName("L_Target") %><%=label.getLabelName("L_Prescription")%></td>
					<td class="title_center"><%= label.getLabelName("L_ThreeTarget") %></td>
					<td class="title_center"><%= label.getLabelName("L_Target") %><%=label.getLabelName("L_Grade")%></td>
					<td class="title_center"><%= label.getLabelName("L_Target") %><%=label.getLabelName("L_Prescription")%></td>
				</tr>
 	  <% } %> 
	<% //--------------------------------------  default value definition --%>
    <%
    	int i=0;
        Integer nDefaultzyldealerapproveid = new Integer(-1);               
        String strClassType = new String(); 
        boolean bHasChecked = false;
        String strDefaultIsDisabled="";
      
   	%>
   	
    <% //--------------------------------------  loop results --%>
     <span id="olddetail" >
    <logic:iterate id="usergroup" collection="<%= userGroupSummary %>" indexId="idx" scope="page">                      
    	
    <%
    	HashMap userGroupMap = (HashMap)pageContext.getAttribute("usergroup"); 
        String strIsDisabled = "";
        String strIsChecked = "";
        boolean selectDisabled=true;
        if (subjectcode.equals("820") || subjectcode.equals("821") || subjectcode.equals("824")){
        	if(((Integer)userGroupMap.get("basestatus")).intValue()==20){
        		selectDisabled=false;
        	}
        }
        if (subjectcode.equals("920") || subjectcode.equals("921") || subjectcode.equals("924")){
        	if(((Integer)userGroupMap.get("basestatus")).intValue()==40){
        		selectDisabled=false;
        	}
        }
        //out.print(userGroupMap.get("userid")+" "+strFromuserid);
        if((userGroupMap.get("userid")).toString().equals(strFromuserid)){
        	selectDisabled=true;
        }
        if(!(userGroupMap.get("parentuserid")).toString().equals(strFromuserid)){
        	selectDisabled=true;
        }
        if(i%2==0){
            strClassType="td-listrom";
        } else{
            strClassType="none";
        } 
       if(!bHasChecked)
        {
	        strIsChecked = "Checked";                       
            bHasChecked = true;
          	strDefaultIsDisabled = strIsDisabled;            
        }  
       i++;
  	%>
    
    <tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'" class="<%=JspHelper.filterNull( strClassType )%>">
         <%if (subjectcode.equals("820") || subjectcode.equals("821")|| subjectcode.equals("920") || subjectcode.equals("921")){  %>
              <td class="title_center">
               <custom:checkbox property="zylorgreportplanapproveid" name="usergroup" changedName="batchnoidstr" styleClass="normalradio" disabled="<%=selectDisabled %>" />
              </td>
              <td><custom:write property="zylorgreportplanapproveid" name="usergroup"  nbsp="true" /></td>
              <td><custom:write property="valuename" name="usergroup"  nbsp="true"/></td>
              <!-- 
              <td><a href="../../biee/ApprovalNotesFrm.jsp?<%= OvalTools.randomURL() %>&transactionid=<custom:write name="usergroup" property="zyltagdoctorapproveid"/>&transactioncode=<custom:write name="usergroup" property="zyltagdoctorapproveid"/>&subjectcode=<%=subjectcode%>">
              <%= label.getLabelName("L_Approve") %>
              </a></td>
               -->
              <td>&nbsp;<custom:write name="usergroup" property="area1name" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="deptname" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="area2name" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="parentusername" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="paretnemployeename" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="username" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="employeename" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="orgcode" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="orgname" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="globalpccode" /></td>
              <%if(subjectcode.equals("820") || subjectcode.equals("920")){ %>
              <td>&nbsp;<custom:write name="usergroup" property="cityname" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="countryname" /></td>
              <%} %>
              <td>&nbsp;<custom:write name="usergroup" property="organalysisattr1" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="organalysisattr2" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="organalysisattr3" /></td>
              <%if(subjectcode.equals("821") || subjectcode.equals("921")){ %>
              <td>&nbsp;<custom:write name="usergroup" property="organalysisattr4" /></td>
              <%} %>
              <td>&nbsp;<custom:write name="usergroup" property="productgroupname" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="isopen"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="openyear" /></td>
              <td>&nbsp;<custom:write name="usergroup" property="openmonth" /></td>
              
      <% } %>
       <%if (subjectcode.equals("824") || subjectcode.equals("924")){  %>
              <td class="title_center">
               <custom:checkbox property="approve_docreportplanid" name="usergroup" changedName="batchnoidstr" styleClass="normalradio" disabled="<%=selectDisabled %>" />
              </td>
              <td><custom:write property="approve_docreportplanid" name="usergroup"  nbsp="true" /></td>
              <td><custom:write property="valuename" name="usergroup"  nbsp="true"/></td>
              <!-- 
              <td><a href="../../biee/ApprovalNotesFrm.jsp?<%= OvalTools.randomURL() %>&transactionid=<custom:write name="usergroup" property="zyltagdoctorapproveid"/>&transactioncode=<custom:write name="usergroup" property="zyltagdoctorapproveid"/>&subjectcode=<%=subjectcode%>">
              <%= label.getLabelName("L_Approve") %>
              </a></td>
               -->
                <td><custom:write name="usergroup" property="area1name" />&nbsp;</td>
                <td><custom:write name="usergroup" property="deptname" />&nbsp;</td>
                <td><custom:write name="usergroup" property="area2name" />&nbsp;</td>
                <td><custom:write name="usergroup" property="parentusername" />&nbsp;</td>
                <td><custom:write name="usergroup" property="paretnemployeename" />&nbsp;</td>
                <td><custom:write name="usergroup" property="username" />&nbsp;</td>
                <td><custom:write name="usergroup" property="employeename" />&nbsp;</td>
                <td><custom:write name="usergroup" property="doctorcode" />&nbsp;</td>
                <td><custom:write name="usergroup" property="doctorname" />&nbsp;</td>
                <td><custom:write name="usergroup" property="orgcode" />&nbsp;</td>
                <td><custom:write name="usergroup" property="orgname" />&nbsp;</td>
                <td><custom:write name="usergroup" property="isdeveloped" />&nbsp;</td>
                <td><custom:write name="usergroup" property="isbale"/>&nbsp;</td>
                <td><custom:write name="usergroup" property="organalysisattr1" />&nbsp;</td>
                <td><custom:write name="usergroup" property="organalysisattr2" />&nbsp;</td>
                <td><custom:write name="usergroup" property="organalysisattr3" />&nbsp;</td>
                <td><custom:write name="usergroup" property="stddeptname" />&nbsp;</td>
                <td><custom:write name="usergroup" property="hospitaldeptname" />&nbsp;</td>
                <td><custom:write name="usergroup" property="productgroupname" />&nbsp;</td>
                <td><custom:write name="usergroup" property="qty" />&nbsp;</td>
                <td><custom:write name="usergroup" property="doctorlevel" />&nbsp;</td>
                <td><custom:write name="usergroup" property="currentstate"/>&nbsp;</td>
                <td><custom:write name="usergroup" property="type1" />&nbsp;</td>
                <td><custom:write name="usergroup" property="level1" />&nbsp;</td>
                <td><custom:write name="usergroup" property="qty1" />&nbsp;</td>
                <td><custom:write name="usergroup" property="type2" />&nbsp;</td>
                <td><custom:write name="usergroup" property="level2" />&nbsp;</td>
                <td><custom:write name="usergroup" property="qty2" />&nbsp;</td>
                <td><custom:write name="usergroup" property="type3" />&nbsp;</td>
                <td><custom:write name="usergroup" property="level3" />&nbsp;</td>
                <td><custom:write name="usergroup" property="qty3" />&nbsp;</td>
                <td><custom:write name="usergroup" property="type4" />&nbsp;</td>
                <td><custom:write name="usergroup" property="level4" />&nbsp;</td>
                <td><custom:write name="usergroup" property="qty4" />&nbsp;</td>
              
      <% } %>
	</tr>

            
    </logic:iterate>  
    

    
</span>
<!--		<tr> -->
	<!--			<td colspan="66" align="left"><%= label.getLabelName("L_TotalData") + label.getLabelName("L_Colon") %><custom:write property="count" name="count" nbsp="true"/></td> -->
	<!--		</tr> -->
            <%@ include file="/inc/SummaryActionUP.inc" %>

          </table>
    
 </div>   
    <% //--------------------------------------  page operation button --%>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    	<tr> 
        	<td class="summary_top" ></td>
        </tr>
        <tr> 
        	<td class="td_center"> 
        	<% if (subjectcode.equals("820") || subjectcode.equals("821") || subjectcode.equals("824")){ %>
             <a onclick="page_done('agree')"><custom:button type="1" label="L_Agree" imgsrc="Agree.gif" border="0" style="width:60"/></a>
             <a onclick="page_done('deny')"><custom:button type="1" label="L_Deny" imgsrc="deny.gif" border="0" style="width:60"/></a>
            <%} %>
            <% if (subjectcode.equals("920") || subjectcode.equals("921") || subjectcode.equals("924")){ %>
             <a onclick="page_done('allstop')"><custom:button type="1" label="L_ALLStop" imgsrc="Agree.gif" border="0" style="width:60"/></a>
             <a onclick="page_done('stop')"><custom:button type="1" label="L_Stop" imgsrc="Agree.gif" border="0" style="width:60"/></a>
            <%} %>
            <a onclick="page_back();"><custom:button type="1" label="L_Back" imgsrc="back.gif" border="0" style="width:60"/></a>      		
        	</td>
        </tr>
  	</table>

</form>

</body>
</html>


